//
//  BKSearchViewController.m
//  baokaodaxue
//
//  Created by dangyangyang on 15/5/25.
//  Copyright (c) 2015年 报考大学. All rights reserved.
//

#import "BKSearchViewController.h"
#import "BKResultOfMatchingScoreViewController.h"
#import "BKMatchingScoreViewController.h"
#import "BKMatchingProvinceViewController.h"
#import "BKHistoryViewController.h"
<<<<<<< .merge_file_xo3Z96
#import "BKLiuXueViewController.h"
#import "BKZhiYuanViewController.h"
=======
#import "BKMatchingScholarshipViewController.h"
>>>>>>> .merge_file_0sZJE8

@interface BKSearchViewController ()

@end

@implementation BKSearchViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    

}


- (void)viewDidAppear:(BOOL)animated{

    [super viewDidAppear:animated];
    UITabBarController *tabBarViewController = (UITabBarController *)[[[UIApplication sharedApplication] keyWindow] rootViewController];
    [tabBarViewController.tabBar setBarTintColor:[UIColor colorWithRed:0.439 green:0.808 blue:0.827 alpha:1.000]];
    
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (BOOL)automaticallyAdjustsScrollViewInsets{

    return NO;
    
}
- (IBAction)matchingSomething:(id)sender {
    if ([sender isKindOfClass:[UIButton class]]) {
        UIButton *button = (UIButton *)sender;
        switch (button.tag) {
            case 8000:{
                BKMatchingScoreViewController *matchingScoreVC = [[BKMatchingScoreViewController alloc] initWithNibName:NSStringFromClass([BKMatchingScoreViewController class]) bundle:nil];
                [self presentViewController:matchingScoreVC animated:YES completion:nil];
                
                
            }
                break;
            case 8001:{
                BKZhiYuanViewController *zhiyuanVC = [[BKZhiYuanViewController alloc] initWithNibName:NSStringFromClass([BKZhiYuanViewController class]) bundle:nil];
                [self presentViewController:zhiyuanVC animated:YES completion:nil];
                
                
            }
                break;
            case 8003:{
            
                BKHistoryViewController *history = [[BKHistoryViewController alloc] initWithNibName:NSStringFromClass([BKHistoryViewController class]) bundle:nil];
                [self presentViewController:history animated:YES completion:nil];
                
                break;
            }
            case 8002:{
            
                BKMatchingProvinceViewController *prov = [[BKMatchingProvinceViewController alloc] initWithNibName:NSStringFromClass([BKMatchingProvinceViewController class]) bundle:nil];
                [self presentViewController:prov animated:YES completion:nil];
            }
                break;
<<<<<<< .merge_file_xo3Z96
            case 8004:{
                
                BKLiuXueViewController *liuxue = [[BKLiuXueViewController alloc] initWithNibName:NSStringFromClass([BKLiuXueViewController class]) bundle:nil];
                [self presentViewController:liuxue animated:YES completion:nil];
=======
            case 8007:{
                BKMatchingScholarshipViewController *matchingScholarship = [[BKMatchingScholarshipViewController alloc] initWithNib];
                [self presentViewController:matchingScholarship animated:YES completion:nil];
>>>>>>> .merge_file_0sZJE8
            }
                break;
            default:
                break;
        }
    }
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
